239809b2c2822bbb0069a088f11681c69bfa2b3f,src/main/java/org/thymeleaf/engine/ProcessorTemplateHandler.java,ProcessorTemplateHandler,handleOpenElement,#IOpenElementTag#,1220

Before Change


                 */

                // Create the actual Model instance (a clone) that will be passed to the processor to execute on
                final Model processedModel = new Model(currentGatheringModel.getInnerModel());

                // Execute the processor on the just-created Model
                ((IElementModelProcessor) processor).process(this.context, processedModel, modelStructureHandler);

                // Apply any context modifications made by the processor (local vars, inlining, etc.)
                modelStructureHandler.applyContextModifications(this.engineContext);

                // Reset the skipbody flags so that the processed model can be executed in the same conditions as the original
                currentGatheringModel.resetGatheredSkipFlags();

                /*
                 * Now we will do the exact equivalent to what is performed for an Element Tag processor, when this
                 * returns a result of type "replaceWithModel".
                 */

                // Reset the model
                vars.modelAfter = resetModel(vars.modelAfter, true);

                // Set the model to be executed, and set it to be processable (that is a MUST in this case)
                vars.modelAfter.addModel(processedModel);
                vars.modelAfterProcessable = true;

                // Given we are going to execute the modified model instead of the gathered one, we will set all body

After Change


                    vars.modelAfter = resetModel(vars.modelAfter, true);

                    // Set the model to be executed, and set it to be processable (that is a MUST in this case)
                    vars.modelAfter.addModel(processedModel);
                    vars.modelAfterProcessable = true;

                    // Given we are going to execute the modified model instead of the gathered one, we will set all body